import List  from './List.js'
import {Detail} from './Detail.js'
 
var app = new Vue({
    el:'#root',
    data:{
        // currentComp: List
        currentComp:()=> import('./List.js')
    },
    methods:{
        handleNavClick(type){
            this.currentComp = (type ==='list' ? List:Detail);
        }
    },
    mounted(){
        console.log('mounted');
    },
    updated(){
        console.log("updated");
    },
    activated(){
        console.log("activated");
    },
    
})
